package inet.app.controller.request;
import java.util.Calendar;
import org.json.JSONException;
import org.json.JSONObject;
import android.os.Build;
public class Request_Format {
	
	private static String request = "";
// Tạo các String request lên server APP _ XSSC ------------------------------
	
	public static String Slave_Req(String mobile){
		String request = "SLAVE_REQ|0|"+mobile+"||";
		return request;
	}
	public static String Discon_Req(){
		String request = "DISCON_REQ||";
		return request;
	}
	public static String XsSync_Req(String time){
		String request ="XSSYNC_REQ|10000|"+ time + "||";
		return request;
	}
	public static String XsSync_Req(String appid,String time){
		String request ="XSSYNC_REQ|"+ "testMT"+ "|"+ time + "||";
		return request;
	}
	
	public static String Chat_Req(String appid, String type,String list_size){
		String request ="CHAT_REQ|" + appid + "|" + type+"|" + list_size + "||";
		return request;
	}
	public static String Tk_Cau_Req(String appid,String time,String code,int biendo){
		String request ="TKCAU_REQ|"+ appid + "|"+ time + "|"+ code + "|"+ biendo +"||";
		return request;
	}
	public static String Tk_Cau2_Req(String appid,String time,String code,int biendo){
		String request ="TKCAU2_REQ|"+ appid + "|"+ time + "|"+ code + "|"+ biendo +"||";
		return request;
	}
	public static String Xs_Cau_Req(String appid,String code,int soketqua){
		String request ="XS_CAU_REQ|"+ appid+ "|"+ code + "|"+ soketqua +"||";
		return request;
	}

}
